
<%
var selected1 = "";
%>

<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="/product" method="post">


		<input type="hidden" name="pageSize" value="${page.pageSize}" />
		<input type="hidden" name="pageCurrent" value="${page.pageCurrent}" />

		<div class="bjui-searchBar">

				<label for="j_name">名称：</label>
				<input type="text"  id="j_name" name="name" value="${product.name!}" class="form-control" size="10"/>

			<button type="submit" class="btn-default" data-icon="search">查询</button>
			<a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>

			<div class="pull-right">

				<a  href="/product/edit" class="btn btn-default" data-id="dialog_product_edit" data-toggle="dialog"
					data-width="1024" data-height="768"  data-mask="true">添加</a>

				<a  href="/product/edit?id={#bjui-selected}" class="btn btn-default" data-id="tab_product_edit" data-toggle="dialog"
					data-width="1024" data-height="768"  data-mask="true">编辑</a>

				<a  href="/product/edit?action=3&id={#bjui-selected}" class="btn btn-default" data-id="tab_product_edit" data-toggle="dialog"
					data-width="1024" data-height="768" data-mask="true">复制添加</a>

				<a href="/product/del?id={#bjui-selected}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>


				&nbsp;&nbsp;
			</div>

		</div>

	</form>
</div>
<div class="bjui-pageContent">
	<table  data-toggle="tablefixed" data-width="100%"  data-layout-h="0" data-nowrap="true">
		<thead>
		<tr>


			<th width="50">编号</th>

			<th>名称</th>

			<th>所属平台</th>

			<th>所属功能名</th>

			<th>文件Key</th>

			<th>组件图片</th>

			<!--<th>组件大图</th>-->

			<th>Git地址</th>

			<th>作者</th>

			<th>添加时间</th>

			<th>修改时间</th>

		</tr>
		</thead>
		<tbody>

		<%
        for(obj in list_obj){
        %>

            <tr data-id="${obj.id}">

			<td>
				 ${obj.id!}
			</td>

			<td>
				 ${obj.name!}
			</td>

			<td>

				<%
				for(obj2 in platformList)
				{
				if(obj2.id == obj.platformid)
				{
				print(obj2.name);
				break;
				}
				}
				%>
			</td>

			<td>

				<%
				for(obj2 in funcnameList)
				{
				if(obj2.id == obj.funcnameid)
				{
				print(obj2.name);
				break;
				}
				}
				%>
			</td>


			<td>
				${obj.firstkey!}
			</td>

			<td>
				 ${obj.smallimage!}
			</td>


			<td>
				 ${obj.dataurl!}
			</td>

			<td>
				${obj.author!}
			</td>


			<td>
				${obj.adddate!,'yyyy-MM-dd'}
			</td>
			<td>
				${obj.editdate!,'yyyy-MM-dd'}
			</td>

			</tr>
         <%}%>   

		</tbody>
	</table>
</div>

<div class="bjui-pageFooter">
	<div class="pages">
		<span>每页&nbsp;</span>
		<div class="selectPagesize">
			<select data-toggle="selectpicker" data-toggle-change="changepagesize">
				<option value="20">20</option>
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
		</div>
		<span>&nbsp;条，共 ${page.recordCount} 条</span>
	</div>
	<div class="pagination-box" data-toggle="pagination" data-total="${page.recordCount}" data-page-size="20" data-page-current="${page.pageNumber}">
	</div>
</div>
